package com.example.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.entity.FollowInfo;
import com.example.demo.mapper.FollowMapper;
import java.util.List;

@Service
public class FollowService {

    @Autowired
    private FollowMapper followMapper;

    public Integer isFollow(Integer uid, Integer followId) {
        return followMapper.isFollow(uid, followId);
    }

    public Integer select(Integer uid, Integer followId) {
        return followMapper.select(uid, followId);
    }

    public Integer cancel(Integer uid, Integer followId) {
        return followMapper.cancel(uid, followId);
    }

    public Integer getFansByUid(Integer uid) {
        return followMapper.getFansByUid(uid);
    }

    public List<FollowInfo> getFanInfoAllByUid(Integer uid) {
        return followMapper.getFanInfoAllByUid(uid);
    }

    public List<FollowInfo> getConcernListByUid(Integer uid) {
        return followMapper.getConcernListByUid(uid);
    }


}
